﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (PreviousPage != null)
            {
                TextBox box = (TextBox)PreviousPage.FindControl("hobby");
                TextBox box1 = (TextBox)PreviousPage.FindControl("name");
                TextBox box2 = (TextBox)PreviousPage.FindControl("age");
                if (box !=null & box1 != null& box2 != null)
                {
                    Label1.Text = box.Text;
                    Label2.Text = box1.Text;
                    Label3.Text = box2.Text;
                }

            }

        }
    }
}